<template>
	<view class="textrd">
		<view class="animation-turntable payretention">
			<image src="/static/img/mp13.72527c3a.png" mode="widthFix" style="width: 100%; height: auto;" class="img img2222 pt-50 pb-20"></image>
			<view class="end content"  style="margin-top: 10%;"></view>
			<view class="name-box first">
				<view class="item222">欠缺五行：五行失衡</view>
				<view class="item222">2024龙年，也是九紫离火大运第一年，</view>
				<view class="item222">最利你的......</view>
			</view>
			<view class="content-wrap" style="background: none;">
				<image src="/static/img/mp14.0ee194f3.png" mode="widthFix" style="width: 100%; height: auto;" ></image>
				<view id="zhifucesuan">
					<view class="mp_tips" style="color: rgb(0, 0, 0); text-align: center; margin-top: 5%;">
						命盘显示，2024年你的感情、事业、财运会出现
						<text style="color: red;">重要变动</text>
					</view>
					<view class="bar_btn" @click="open()">
						<image src="/static/img/mp12.7f832d0e.png"  mode="widthFix" style="width: 100%; height: auto;"   
						class="img payBtn" id="ainuo_foot_picbtn"></image>
					</view>
				</view>
			</view>
			<uni-popup ref="popup">
				<view class="pay payIn" :style="{ padding: '0px', zIndex: 2147483647 }">
					<!-- 结果信息 -->
					<view class="top fftt">
						<view class="left_pic">
							<image class="img imgno"
								:style="{ height: '260px', backgroundImage: 'url(/static/img/dashio.png)', backgroundSize: '100% 100%', backgroundRepeat: 'no-repeat' }">
							</image>
						</view>
						<view class="right_text">
							<view class="top_name" :style="{ color: 'rgb(51, 51, 51)' }">测试的生辰详批</view>
							<view>
								<text :style="{ fontWeight: 'bold', color: 'rgb(51, 51, 51)' }"><span>阳历：</span></text>
								<text :style="{ color: 'rgb(185, 0, 0)' }"><span>1988年06月15日</span></text>
							</view>
							<view>
								<text :style="{ fontWeight: 'bold', color: 'rgb(51, 51, 51)' }"><span>先天格局：</span></text>
								<text :style="{ color: 'rgb(185, 0, 0)' }"><span>一生或有大权</span></text>
							</view>
							<view :style="{ color: 'rgb(51, 51, 51)', lineHeight: '22px' }">
								命盘显示，2024年你的感情、<br>事业、财运会出现<text
									:style="{ color: 'rgb(245, 159, 54)' }"><span>重要变动</span></text>
							</view>
						</view>
					</view>
					<!-- 支付金额 -->
					<view class="middle fftt">
						<view class="left_price">
							<view class="discount jieyuanjia">结缘价：￥39.90</view>
						</view>
						<view class="right_time">
							<view :style="{ color: 'rgb(51, 51, 51)' }">距优惠结束</view>
							<view class="overtime fftt">
								<uni-countdown :show-day="false" :hour="outTime.hour" :minute="outTime.minute"
									:second="outTime.minute" :filterShow="{}" color="#FFFFFF"
									background-color="#c92727"></uni-countdown>
							</view>
						</view>
					</view>
					<!-- 支付选项 -->
					<view class="bottom">
						<view class="wx_pay wx_select1 ffbb" @click="payWayChange('wx')">
							<view class="left_picd fftt">
								<image
									:style="{ backgroundImage: 'url(/static/img/wx.png)', backgroundPosition: '0% 0%', backgroundSize: '100% 100%', backgroundRepeat: 'no-repeat' }">
								</image>
								<text>微信支付</text>
							</view>
							<view class="wx_select" :class="{wx_selected:selected}"></view>
						</view>
						<view class="ali_pay ali_select1 ffbb" @click="payWayChange('zfb')">
							<view class="left_picd fftt">
								<image
									:style="{ backgroundImage: 'url(/static/img/zfb.png)', backgroundPosition: '0% 0%', backgroundSize: '100% 100%', backgroundRepeat: 'no-repeat' }">
								</image>
								<text>支付宝支付</text>
							</view>
							<view class="ali_select" :class="{ali_selected:!selected}"></view>
						</view>
					</view>
					<view class="pay_btn" @click="toPay">立即解锁内容</view>
					<view class="gaodu" :style="{ height: '10px' }"></view>
				</view>
			</uni-popup>
			
		</view>
		
		
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				outTime: {
					hour: 0,
					minute: 30,
					second: 0
				},
				selected:true,
				payWay:"wx"
				
			}
		},
		methods: {
			//打开弹窗
			open() {
				this.$refs.popup.open('bottom')
			},
			//切换支付方式
			payWayChange(type){
				if(type=='wx'){
					this.selected=true
					this.payWay='wx'
				}else{
					this.selected=false;
					this.payWay='zfb'
				}
			},
			//支付提交
			toPay(){
				console.log("122333")
				uni.showToast({
					icon:'none',
					title:"支付方式为"+this.payWay
				})
			}
		},
		mounted() {
			this.open();
		}
	}
</script>

<style>
page{
    background: #c99b5d;
	color: #333;
}
.textrd {
    max-width: 640px;
    min-height: 100vh;
    background: url(/static/img/mp06.03a0c8f9.jpg) no-repeat;
    background-size: 100% 100%;
}

.animation-turntable {
    max-width: 640px;
    min-height: 100vh;
    box-sizing: border-box;
}

.pb-20 {
    padding-bottom: 10px;
}


.pt-50 {
    padding-top: 25px;
}

img, uni-image {
    pointer-events: none;
}
img, uni-image {
    width: 100%;
    height: 100%;
}

.animation-turntable .content {
    position: relative;
}

.item222 {
    width: 100%;
    font-size: .3rem;
    line-height: .34rem;
    font-weight: 400;
    color: #eef3ff;
    text-align: left;
    padding-left: .5rem;
    box-sizing: border-box;
    vertical-align: top;
    height: 22px;
    text-align: center;
    font-size: 20px;
    opacity: 1;
}
.animation-turntable .content-wrap {
    width: 96%;
    padding: 0 11px;
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
}

#ainuo_foot_picbtn {
    -webkit-animation: now_test 1s infinite;
    animation: now_test 1s infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}

@-webkit-keyframes now_test {
        0% {
            -webkit-transform: scale(.9)
        }

        to {
            -webkit-transform: scale(1)
        }
    }

    @keyframes now_test {
        0% {
            -webkit-transform: scale(.9)
        }

        to {
            -webkit-transform: scale(1)
        }
    }





	.pay {
		/* width: 1920px; */
		margin: 0 auto;
		position: relative;
		background-color: #fffbd8;
		border-radius: 10px 10px 0 0;
		z-index: 999999999;
		display: block;
	}

	.pay text {
		color: #333;
	}

	.pay .top {
		display: flex;
		border-bottom: 1px solid #efe67d;
		font-size: 15px;
		padding-top: 20px;
		justify-content: center;
	}


	.fftt {
		display: flex;
		align-items: center;
	}

	.pay .left_pic {
		width: 150px;
		position: relative;
		margin-right: 0px;
	}

	.wx_pay {
		margin: 15px 0;
	}

	.ffbb {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.pay .left_picd {
		font-size: 17px;
		font-weight: 700;
	}

	.pay .left_picd image {
		width: 33px;
		height: 33px;
		margin-right: 10px;
	}

	.pay .bottom .wx_select {
		width: 15px;
		height: 15px;
		border: 1px solid #29a339;
		border-radius: 50%;
		box-shadow: 0 0 2px #29a339;
	}

	.pay .bottom .wx_selected {
		background-color: #29a339;
	}

	.pay .bottom .ali_selected {
		background-color: #1795d3;
	}

	.pay .bottom .ali_select {
		width: 15px;
		height: 15px;
		border: 1px solid #1795d3;
		border-radius: 50%;
		box-shadow: 0 0 2px #1795d3;
	}

	.pay .left_pic .imgno {
		width: 100%;
	}

	.pay .middle {
		display: flex;
		font-size: 17px;
		padding: 10px 15px;
		justify-content: space-between;
		border-bottom: 1px solid #efe67d;
	}



	.pay .middle .left_price .discount {
		color: #fff;
		background-color: #c92727;
		border-radius: 6px;
		line-height: 30px;
		padding: 0 7px;
		font-size: 16px;
	}

	.pay .bottom {
		padding: 5px 15px;
		color: #333;
		font-size: 15px;
	}

	.pay .pay_btn {
		background-color: #c92727;
		border-radius: 25px;
		width: 350px;
		margin: 0 auto 0;
		text-align: center;
		line-height: 50px;
		height: 50px;
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		text-align: center;
		margin-bottom: 10px;
	}
	.pay .right_text .top_name {
	    font-size: 17px;
	    font-weight: 700;
	}
	
	.pay .right_text view  {
	    margin-bottom: 15px;
	}
	
</style>
